package com.ea.eadp.nexus.test.pageDefinition.pc;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;

import com.ea.eadp.nexus.test.pageDefinition.BasePage;

public class UnderageRegisterCompletePage extends BasePage {
    
    public UnderageRegisterCompletePage(WebDriver driver) {
        super(driver, UnderageRegisterCompletePage.class);
    }
    
    public WebElement txt_header;
    public WebElement btn_close;
    
    public static class ControlDefinitions {
        public static By txt_header = By.xpath("//div[@id='panel-profile-confirmation']/div[2]/div/h1");
        public static By btn_close = By.xpath("//div[@id='panel-profile-confirmation']/div[4]/a/span/span");
      
    }
    
    public void initControls() {
        this.txt_header = driver.findElement(ControlDefinitions.txt_header);
        this.btn_close = driver.findElement(ControlDefinitions.btn_close);
    }
    
    public void initPage() {
        waitForWebElementPresent(ControlDefinitions.btn_close);
        initControls();
    }
    
}
